package com.ambow.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ambow.user.dto.Article;
import com.ambow.user.dto.User;
import com.ambow.util.PagingBounds;

public interface IUserDAO {
	
	public User selectUserByID(int id);
	
	public List<User> selectUsers(String name);
	
	public void addUser(User user);
	
	public void updateUser(User user);
	
	public void deleteUser(int id);
	
	public List<Article> getUserArticles(int id);
	
	public List<Article> getUserArticlesPage(PagingBounds bounds,@Param("userid") int userid);
}
